﻿using System;
using System.Diagnostics;
using Smarly.Idml.RelaxNg.Generator.Model;
using Tenuto.Grammar;

namespace Smarly.Idml.RelaxNg.Generator.Proxy
{
	public abstract class NamedBuilder<T> : Builder<T> where T : XmlItemExp
	{
		[DebuggerStepThrough]
		protected NamedBuilder(T exp, Action<IObjectName> updateName) : base(exp, updateName) { }

		protected string Name { get { return ((SimpleNameClass) Exp.Name).name.local; } }
	}
}